﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AdminSystem.EntityFrameworkCore.Migrations
{
    public partial class 修改地址字段长度 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Province",
                table: "Addresses",
                type: "nvarchar(max)",
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(50)",
                oldMaxLength: 50);

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 1,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 3, 10, 18, 35, 8, 660, DateTimeKind.Local).AddTicks(9391), "55594f353e9844e68fbee157eca1afd6" });

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 2,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 3, 15, 18, 35, 8, 660, DateTimeKind.Local).AddTicks(9456), "643747b5a7ab45fba639823ec11b3174" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Province",
                table: "Addresses",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 1,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 1, 4, 14, 13, 31, 860, DateTimeKind.Local).AddTicks(6251), "9e26d269a5d047a8b4a5067d866cdf65" });

            migrationBuilder.UpdateData(
                table: "Admins",
                keyColumn: "AdminId",
                keyValue: 2,
                columns: new[] { "CreateTime", "Password" },
                values: new object[] { new DateTime(2025, 1, 9, 14, 13, 31, 860, DateTimeKind.Local).AddTicks(6326), "4e757e8a2c734a3c88068c89a9c9713a" });
        }
    }
}
